import { clearObject, deepCopyObj } from '../../../assets/js/help.js'
export default {
  data() {
    return {
    }
  },
  created() {
    // this.getList();
  },
  filters: {

  },
  methods: {
    getList() {
      let params = $.extend({}, this.searchParams, this.otherParams);
      this.list(params);
    },
    list(aparams) {
      let self = this,
        params = {
          page: this.pageNumber,
          rp: this.pageSize
        };
      params = $.extend({}, params, aparams);
      API.park_vip.vipWaterList(params)
        .then(res => {
          let data = res.data,
            list = data.rows;
          self.tbodysInfo = list;
          self.total = data.total;
        }, err => { })
    },
    exportWater() {
      let self = this;
      let params = {
      };
      params = $.extend({}, params, this.searchParams, this.otherParams);
      self.showDialog("确认导出该报表?", '', function () {
        // API.park_vip.vipWaterExport(params).then(res => {
        //   self.showToast('导出成功');
        //   window.location.href = encodeURI("/mgr/common/download.do?fileName=" + res.data);
        // }, err => { });
        self.toExportAsync('vip/vipOperation/exportVipOperation.do', params);
      });
    }
  }
}